import api from "../../../../http/api"
import richText from '@/computingTool/richTextUtil.js'
export default {
	data() {
		return {
			id:'',
			requestData:{},//请求的数据
			modifyData:"",//修改后的富文本
		}
	},
	onLoad(value){
		this.id = value.id;
		this.loadData();
	},
	methods: {
		loadData(){
			api.announcement({id:this.id}).then(res=>{
				if(res.code==1){
					console.log('ss',richText.formatRichText(res.data.content))
					this.modifyData = richText.formatRichText(res.data.content);
					
					
				}else{
					uni.showToast({ title: res.mag, icon: 'none' });
				}
			})
		}
	}
}